<extend name="Public/frame"/>
<block name="page_body">

    <include file="Public/header"/>

    <div class="layout-container">
        <include file="menu" />
        <div class="box-body">

            <div class="page-container">
                <div class="head">
                    <h1><if condition="$data_id">修改<else/>新建</if>分类</h1>
                </div>
                <div class="body">
                    <form class="tpx-ajaxsubmit" role="form" action="{:U(CONTROLLER_NAME.'/post_handle?action=edit&id='.$data_id)}" method="post">
                        <div class="line">
                            <label>分类名称</label>
                            <div class="control">
                                <input type="text" class="form-control" name="title" required="true" value="{$data_one.title|htmlspecialchars}" />
                            </div>
                        </div>
                        <div class="line">
                            <div class="label"></div>
                            <div class="control">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>


    <include file="Public/footer"/>

</block>